#include  <bits/stdc++.h>
using namespace std;
int main()
{
	int a,b,c;
	cin >> a >> b >> c;
	vector <int> d;
	vector <int> e;
	vector <int> f;
	int minf=1e5;
	for(int i=1;i<=c-1;i++)
	{
		if(a%i==0&&b%(c-i)==0&&a!=i&&b!=c-i)
		{
	         d.push_back(i);
	         e.push_back(c-i);
	         f.push_back(abs(a/i-b/(c-i)));
	         minf=min(minf,abs(a/i-b/(c-i)));
		}
	}
	//cout << minf << endl;
	if(f.size()==0) cout << "No Solution" << endl;
	else
	{
		for(int i=0;i<f.size();i++)
	    {
		    	//cout << f[i] << endl;
		    	if(f[i]==minf)
			    cout << d[i] << " " << e[i] << endl;
	    }
	}
	return 0;
}
